using Gateway.Common.Entity;

namespace Gateway.Domain.Entities;

/// <summary>
/// 语言下的 扩展类库
/// </summary>
public class LanguageExtensionCode : AggregateRootEntityBase
{
    public LanguageExtensionCode(string title, string name, string code, string languageId)
    {
        Title = title;
        Name = name;
        Code = code;
        LanguageId = languageId;
    }

    /// <summary>
    /// 更新
    /// </summary>
    /// <param name="title"></param>
    /// <param name="name"></param>
    /// <param name="code"></param>
    /// <param name="languageId"></param>
    public void Update(string title, string name, string code, string languageId)
    {
        Title = title;
        Name = name;
        Code = code;
        LanguageId = languageId;
    }

    /// <summary>
    /// 显示的标题
    /// </summary>
    public string Title { get;private set; }

    /// <summary>
    /// 代码的文件名称
    /// </summary>
    public string Name { get;private set; }

    /// <summary>
    /// 代码
    /// </summary>
    public string Code { get;private set; }

    /// <summary>
    /// 运行语言的标识
    /// </summary>
    public string LanguageId { get;private set; }


    public LanguageExtensionCode()
    {
    }
}